
<xsl:stylesheet version="2.0"
		xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		xmlns:java="java" 
	>
	<xsl:output omit-xml-declaration="yes" method="xml"/>
	<xsl:variable name="rb" select="java:util.ResourceBundle.getBundle('bundle')"/>
    <xsl:variable name="joomlaHost" >
    	<xsl:value-of select="java:getString($rb,'JOOMLA_HOST')"/>
    </xsl:variable>
	<xsl:variable name="joomlaFileFolder" >
		<xsl:value-of select="java:getString($rb,'JOOMLA_STD_FOLDER')"/>
	</xsl:variable>
	<xsl:variable name="uploadCVTooltip">
		<xsl:value-of select="java:getString($rb,'CANDIDACY_LOAD_CV')"/>
	</xsl:variable>
	<xsl:variable name="newCVTooltip">
		<xsl:value-of select="java:getString($rb,'TOOLTIPT_NEW_CV')"/>
	</xsl:variable>
	
	<xsl:variable name="idValue" >{ID}</xsl:variable>
	<xsl:template match="/Candidati/SimpleData">
		
	<div id="testSimpleData">
		<dl>
			<dt><xsl:value-of select="java:getString($rb,'INDEX_BUTTON3_TITLE')"/></dt>
			
			<xsl:choose>
			    <xsl:when test="Data>0">
					<dd>
			    		<a 	href="javascript:getTarget('candidato.listIncoming','news','','ListaIncomingCandidature');"
							title="{$newCVTooltip}"
						>
							<img class="img" src="./img/newCV.jpg" />
						</a>
			    		
			    	</dd>
			    	<dd><xsl:value-of select="java:getString($rb,'INDEX_BUTTON3_LABEL1')"/>
			    		<b><xsl:value-of select="/Candidati/SimpleData/Data"/></b>
			    		<xsl:value-of select="java:getString($rb,'INDEX_BUTTON3_LABEL2')"/>
			    	</dd>
			    	<dd>
			    		<xsl:value-of select="java:getString($rb,'INDEX_BUTTON3_LABEL3')"/>
			    		<a 	href="javascript:getTarget('candidato.listIncoming','news','','ListaIncomingCandidature');"
							title="{$newCVTooltip}"
						>
							<xsl:value-of select="java:getString($rb,'INDEX_BUTTON3_LABEL4')"/>
						</a>
			    	</dd>
			    </xsl:when>
			    <xsl:otherwise>
					<dd><img class="img" src="./img/oldCV.jpg" /></dd>
					<dd><xsl:value-of select="java:getString($rb,'INDEX_BUTTON3_LABEL5')"/></dd>
			    </xsl:otherwise>
			</xsl:choose>
			
		</dl>
		
		
			
	</div>
	
	</xsl:template>
</xsl:stylesheet>